<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>AutoSDK: /home/work/workspace/autosdk-integration-release/interfaces/public/DataMatcher.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AutoSDK
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_ff6b5900125bb0123025c1cb24bdc726.html">interfaces</a></li><li class="navelem"><a class="el" href="dir_44bcb999a7ea3b353345d521e78cf779.html">public</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">DataMatcher.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#ifndef _DATAMATCHER_HPP_</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#define _DATAMATCHER_HPP_</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;</div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &lt;cstdint&gt;</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &lt;functional&gt;</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &lt;memory&gt;</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &quot;Common.hpp&quot;</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;</div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespace_navinfo.html">Navinfo</a> {</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="keyword">namespace </span>Engine {</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div><div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="struct_navinfo_1_1_engine_1_1_match_result_segment.html">   32</a></span>&#160;<span class="keyword">struct </span><a class="code" href="struct_navinfo_1_1_engine_1_1_match_result_segment.html">MatchResultSegment</a></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;{</div><div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="struct_navinfo_1_1_engine_1_1_match_result_segment.html#ab94f84ffd84543236321d4b11c83c5ad">   34</a></span>&#160;    uint32_t   <a class="code" href="struct_navinfo_1_1_engine_1_1_match_result_segment.html#ab94f84ffd84543236321d4b11c83c5ad">m_SegmentOrder</a>;                       </div><div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="struct_navinfo_1_1_engine_1_1_match_result_segment.html#af0b3bb502facf97fdafd012fe6266d4e">   35</a></span>&#160;    <span class="keywordtype">bool</span>       <a class="code" href="struct_navinfo_1_1_engine_1_1_match_result_segment.html#af0b3bb502facf97fdafd012fe6266d4e">m_IsStartFromLink</a>;                    </div><div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="struct_navinfo_1_1_engine_1_1_match_result_segment.html#a428c9f0142d775ba616e4ca52c341d6c">   36</a></span>&#160;    <span class="keywordtype">bool</span>       <a class="code" href="struct_navinfo_1_1_engine_1_1_match_result_segment.html#a428c9f0142d775ba616e4ca52c341d6c">m_IsEndToLink</a>;                        </div><div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="struct_navinfo_1_1_engine_1_1_match_result_segment.html#ac59b18e8edec7c3cb032c8233c4a24fe">   37</a></span>&#160;    uint32_t   <a class="code" href="struct_navinfo_1_1_engine_1_1_match_result_segment.html#ac59b18e8edec7c3cb032c8233c4a24fe">m_FirstLinkLength</a>;                    </div><div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="struct_navinfo_1_1_engine_1_1_match_result_segment.html#a211f86b2efb0fca2155ecec5c48db8dc">   38</a></span>&#160;    uint32_t   <a class="code" href="struct_navinfo_1_1_engine_1_1_match_result_segment.html#a211f86b2efb0fca2155ecec5c48db8dc">m_LastLinkLength</a>;                     </div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="struct_navinfo_1_1_engine_1_1_match_result_segment.html#ac01219181c758de1bc4a69b292f27ab4">   39</a></span>&#160;    <a class="code" href="struct_navinfo_1_1_engine_1_1_pos3_d.html">Pos3D</a>      <a class="code" href="struct_navinfo_1_1_engine_1_1_match_result_segment.html#ac01219181c758de1bc4a69b292f27ab4">m_StartPoint</a>;                         </div><div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="struct_navinfo_1_1_engine_1_1_match_result_segment.html#aaa885b9be44c195d6ebb1614cf914edd">   40</a></span>&#160;    <a class="code" href="struct_navinfo_1_1_engine_1_1_pos3_d.html">Pos3D</a>      <a class="code" href="struct_navinfo_1_1_engine_1_1_match_result_segment.html#aaa885b9be44c195d6ebb1614cf914edd">m_EndPoint</a>;                           </div><div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="struct_navinfo_1_1_engine_1_1_match_result_segment.html#a7e181e5aed0e02343b60ac67fe67201c">   41</a></span>&#160;    std::vector&lt;DirectedLinkID&gt; <a class="code" href="struct_navinfo_1_1_engine_1_1_match_result_segment.html#a7e181e5aed0e02343b60ac67fe67201c">m_LinkSequence</a>;      </div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;};</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="struct_navinfo_1_1_engine_1_1_data_matcher_result.html">   49</a></span>&#160;<span class="keyword">struct </span><a class="code" href="struct_navinfo_1_1_engine_1_1_data_matcher_result.html">DataMatcherResult</a></div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;{</div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="struct_navinfo_1_1_engine_1_1_data_matcher_result.html#ac95acb3803ae809dd35950ea483dd2e4">   51</a></span>&#160;    std::vector&lt;MatchResultSegment&gt; <a class="code" href="struct_navinfo_1_1_engine_1_1_data_matcher_result.html#ac95acb3803ae809dd35950ea483dd2e4">m_Segments</a>;      </div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;};</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;</div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="class_navinfo_1_1_engine_1_1_data_matcher.html">   54</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_navinfo_1_1_engine_1_1_data_matcher.html">DataMatcher</a></div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;{</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    <span class="keyword">virtual</span> ~<a class="code" href="class_navinfo_1_1_engine_1_1_data_matcher.html">DataMatcher</a>() {};</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> MatchOpenLR(<span class="keyword">const</span> std::vector&lt;uint8_t&gt; &amp;InputStream, std::shared_ptr&lt;DataMatcherResult&gt; &amp;MatchResult) = 0;</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> MatchCrossReference(<span class="keyword">const</span> std::vector&lt;uint8_t&gt; &amp;InputStream, std::shared_ptr&lt;DataMatcherResult&gt; &amp;MatchResult) = 0;</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> MatchCustomFormat(<span class="keyword">const</span> std::vector&lt;uint8_t&gt; &amp;InputStream, std::shared_ptr&lt;DataMatcherResult&gt; &amp;MatchResult) = 0;</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;};</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;} <span class="comment">//namespace Engine</span></div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;} <span class="comment">//namespace Navinfo</span></div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;<span class="preprocessor">#endif //_DATAMATCHER_HPP_</span></div><div class="ttc" id="struct_navinfo_1_1_engine_1_1_pos3_d_html"><div class="ttname"><a href="struct_navinfo_1_1_engine_1_1_pos3_d.html">Navinfo::Engine::Pos3D</a></div><div class="ttdoc">A three dimension position. </div><div class="ttdef"><b>Definition:</b> Common.hpp:43</div></div>
<div class="ttc" id="struct_navinfo_1_1_engine_1_1_data_matcher_result_html_ac95acb3803ae809dd35950ea483dd2e4"><div class="ttname"><a href="struct_navinfo_1_1_engine_1_1_data_matcher_result.html#ac95acb3803ae809dd35950ea483dd2e4">Navinfo::Engine::DataMatcherResult::m_Segments</a></div><div class="ttdeci">std::vector&lt; MatchResultSegment &gt; m_Segments</div><div class="ttdoc">All segments for the result. </div><div class="ttdef"><b>Definition:</b> DataMatcher.hpp:51</div></div>
<div class="ttc" id="namespace_navinfo_html"><div class="ttname"><a href="namespace_navinfo.html">Navinfo</a></div><div class="ttdoc">Navinfo namespace. </div><div class="ttdef"><b>Definition:</b> AutoSDK.hpp:38</div></div>
<div class="ttc" id="struct_navinfo_1_1_engine_1_1_match_result_segment_html"><div class="ttname"><a href="struct_navinfo_1_1_engine_1_1_match_result_segment.html">Navinfo::Engine::MatchResultSegment</a></div><div class="ttdoc">Segment of match result. </div><div class="ttdef"><b>Definition:</b> DataMatcher.hpp:32</div></div>
<div class="ttc" id="class_navinfo_1_1_engine_1_1_data_matcher_html"><div class="ttname"><a href="class_navinfo_1_1_engine_1_1_data_matcher.html">Navinfo::Engine::DataMatcher</a></div><div class="ttdef"><b>Definition:</b> DataMatcher.hpp:54</div></div>
<div class="ttc" id="struct_navinfo_1_1_engine_1_1_match_result_segment_html_a428c9f0142d775ba616e4ca52c341d6c"><div class="ttname"><a href="struct_navinfo_1_1_engine_1_1_match_result_segment.html#a428c9f0142d775ba616e4ca52c341d6c">Navinfo::Engine::MatchResultSegment::m_IsEndToLink</a></div><div class="ttdeci">bool m_IsEndToLink</div><div class="ttdoc">Whether end to link. </div><div class="ttdef"><b>Definition:</b> DataMatcher.hpp:36</div></div>
<div class="ttc" id="struct_navinfo_1_1_engine_1_1_match_result_segment_html_ab94f84ffd84543236321d4b11c83c5ad"><div class="ttname"><a href="struct_navinfo_1_1_engine_1_1_match_result_segment.html#ab94f84ffd84543236321d4b11c83c5ad">Navinfo::Engine::MatchResultSegment::m_SegmentOrder</a></div><div class="ttdeci">uint32_t m_SegmentOrder</div><div class="ttdoc">Match order of this segment. </div><div class="ttdef"><b>Definition:</b> DataMatcher.hpp:34</div></div>
<div class="ttc" id="struct_navinfo_1_1_engine_1_1_match_result_segment_html_af0b3bb502facf97fdafd012fe6266d4e"><div class="ttname"><a href="struct_navinfo_1_1_engine_1_1_match_result_segment.html#af0b3bb502facf97fdafd012fe6266d4e">Navinfo::Engine::MatchResultSegment::m_IsStartFromLink</a></div><div class="ttdeci">bool m_IsStartFromLink</div><div class="ttdoc">Whether start from link. </div><div class="ttdef"><b>Definition:</b> DataMatcher.hpp:35</div></div>
<div class="ttc" id="struct_navinfo_1_1_engine_1_1_match_result_segment_html_a7e181e5aed0e02343b60ac67fe67201c"><div class="ttname"><a href="struct_navinfo_1_1_engine_1_1_match_result_segment.html#a7e181e5aed0e02343b60ac67fe67201c">Navinfo::Engine::MatchResultSegment::m_LinkSequence</a></div><div class="ttdeci">std::vector&lt; DirectedLinkID &gt; m_LinkSequence</div><div class="ttdoc">All matched links. </div><div class="ttdef"><b>Definition:</b> DataMatcher.hpp:41</div></div>
<div class="ttc" id="struct_navinfo_1_1_engine_1_1_match_result_segment_html_a211f86b2efb0fca2155ecec5c48db8dc"><div class="ttname"><a href="struct_navinfo_1_1_engine_1_1_match_result_segment.html#a211f86b2efb0fca2155ecec5c48db8dc">Navinfo::Engine::MatchResultSegment::m_LastLinkLength</a></div><div class="ttdeci">uint32_t m_LastLinkLength</div><div class="ttdoc">Used length of the last link, calculate backward from end point of travel direction. </div><div class="ttdef"><b>Definition:</b> DataMatcher.hpp:38</div></div>
<div class="ttc" id="struct_navinfo_1_1_engine_1_1_match_result_segment_html_ac59b18e8edec7c3cb032c8233c4a24fe"><div class="ttname"><a href="struct_navinfo_1_1_engine_1_1_match_result_segment.html#ac59b18e8edec7c3cb032c8233c4a24fe">Navinfo::Engine::MatchResultSegment::m_FirstLinkLength</a></div><div class="ttdeci">uint32_t m_FirstLinkLength</div><div class="ttdoc">Used length of the first link, calculate forward from start point of travel direction. </div><div class="ttdef"><b>Definition:</b> DataMatcher.hpp:37</div></div>
<div class="ttc" id="struct_navinfo_1_1_engine_1_1_match_result_segment_html_ac01219181c758de1bc4a69b292f27ab4"><div class="ttname"><a href="struct_navinfo_1_1_engine_1_1_match_result_segment.html#ac01219181c758de1bc4a69b292f27ab4">Navinfo::Engine::MatchResultSegment::m_StartPoint</a></div><div class="ttdeci">Pos3D m_StartPoint</div><div class="ttdoc">The start point, if not start from link. </div><div class="ttdef"><b>Definition:</b> DataMatcher.hpp:39</div></div>
<div class="ttc" id="struct_navinfo_1_1_engine_1_1_data_matcher_result_html"><div class="ttname"><a href="struct_navinfo_1_1_engine_1_1_data_matcher_result.html">Navinfo::Engine::DataMatcherResult</a></div><div class="ttdoc">Result of data match. </div><div class="ttdef"><b>Definition:</b> DataMatcher.hpp:49</div></div>
<div class="ttc" id="struct_navinfo_1_1_engine_1_1_match_result_segment_html_aaa885b9be44c195d6ebb1614cf914edd"><div class="ttname"><a href="struct_navinfo_1_1_engine_1_1_match_result_segment.html#aaa885b9be44c195d6ebb1614cf914edd">Navinfo::Engine::MatchResultSegment::m_EndPoint</a></div><div class="ttdeci">Pos3D m_EndPoint</div><div class="ttdoc">The end point, if not end to link. </div><div class="ttdef"><b>Definition:</b> DataMatcher.hpp:40</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
